package com.zhou.syt.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @ClassName: HospRepostitory
 * @Description:
 * @Author: admin
 * @Date: 2022/1/7 10:50
 */
@Repository
public interface HospRepostitory extends MongoRepository<Hospital,String> {

    //判断是否存在数据
    Hospital getHospitalByHoscode(String hoscode);
}
